package com.wanshi.client;


import com.wanshi.entity.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 顽石教育-www.wanshi.com
 * @since 2021-12-21
 */
@FeignClient(value="order-server")
@RequestMapping("/orders")
public interface OrdersClient {

    //3 根据用户id查询订单
    @GetMapping("/user/{userid}")
    public List<Orders> findByUserId(@PathVariable String userid);

}

